package pub.cleangao.memm.spring;

import org.springframework.beans.factory.support.BeanDefinitionRegistry;
import org.springframework.context.annotation.ClassPathBeanDefinitionScanner;
import org.springframework.core.type.filter.AnnotationTypeFilter;
import pub.cleangao.memm.annotation.RpcService;

public class RpcServiceScanner extends ClassPathBeanDefinitionScanner {

    public RpcServiceScanner(BeanDefinitionRegistry registry) {
        super(registry);
        super.addIncludeFilter(new AnnotationTypeFilter(RpcService.class));
    }
}
